<?php
require_once '../ptnhuan-web1/data/users.php';
if(isset($_POST['SignIn'])){
    
} $foo = false;
    for ($i = 0; $i < count($users); $i++) {
        if (strcmp($_POST["username"], $users[$i]["username"]) == 0 && strcmp($_POST["password"], $users[$i]["password"]) == 0) {
            $foo = true;
            break;
        } else {
            $foo = false;
        }
    }
    if ($foo == true)
        echo  " surcessly";
    else
         echo  " please try again ";
        
?>